package com.bpz.main.model;

import java.util.List;

/**
 * Created by 半瓶子 on 2/8/15.
 * blog: xusir.cnblogs.com
 */
public class ActMsg<T> {
    public static final int SUCCESS = 1;
    public static final int ERROR = 2;
    /**
     * 未登录
     */
    public static final int NOLOGIN=3;
    /**
     * 状态码
     */
    private int code=ActMsg.ERROR;
    /**
     * 提示信息
     */
    private String msg;
    /**
     * 多行返回
     */
    private List<T> rows;
    /**
     * 总记录数
     */
    private Integer total;
    /**
     * 单行返回
     */
    private T data;

    public Integer getTotal() {
        return total;
    }

    public void setTotal(Integer total) {
        this.total = total;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public List<T> getRows() {
        return rows;
    }

    public void setRows(List<T> rows) {
        this.rows = rows;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }
}
